package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.dto.system.SysRoleDto;
import com.atguigu.spzx.model.entity.system.SysRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: Mouoal
 * @CreateTime: 2024-11-22  15:05
 * @Version: 1.0
 */
@Mapper
public interface SysRoleMapper {
    public abstract List<SysRole> findByPage(SysRoleDto sysRoleDto);

    //2 角色添加的方法
    void save(SysRole sysRole);

    //修改
   void updateSysRole(SysRole sysRole);

    void deleteById(Long roleId);


    List<SysRole> findAllRoles();
}
